<!-- 顶部工具栏 -->
<div class="site-nav">
    <div class="wrap">
        <ul class="fl">
            <li>欢迎光临！</li>
        </ul>

        <ul class="fr">

            <li class="mobile">
                <div class="tit"><a href="__MODULE__/Index/index">首页</a></div>

            </li>

            <if condition="$V=SESSION('username')">
                <li id="_loginname" style="">
                    <a rel="nofollow" href="__MODULE__/Collect/index">我的收藏</a>
                </li>
                <li style="">
                    <a rel="nofollow" href="__MODULE__/User/index">会员中心</a>
                </li>
                <li style="">
                    <a rel="nofollow" href="__MODULE__/Cart/index/goodsNum/1">去购物车</a>
                </li>
                <li id="_logout" style="">
                    <a href="__MODULE__/Login/logout" class="logout">[退出]</a>
                </li>
                <li style="">
                    <a rel="nofollow"><{$V}></a>
                </li>
                <else/>
                <li id="_register" style="">
                    <a rel="nofollow" href="__MODULE__/Register/index">[注册]</a>
                </li>
                <li id="_login" style="">
                    <a rel="nofollow" href="__MODULE__/Login/index">[登录]</a>
                </li>

            </if>
        </ul>
    </div>
</div>
<!------- 头部 ------>
<div class="header clearfix">
    <div class="wrap">
        <div class="logo">
            <a href="__MODULE__/Index/index"></a>
        </div>
        <!--搜索 开始-->
        <div class="search" style="position:relative;">
            <div class="search-bar clearfix">
                <form action="__MODULE__/Search/index" method="get" onsubmit="return fun()">
                    <input type="text"  id="inputid" name="keyword" class="search-input" value="" placeholder="请输入商品名">
                    <input class="search-btn" type="submit" value="搜索">
                    <script type="text/javascript">
                        function fun(){
                            var inputid=document.getElementById('inputid');
                            ss=inputid.value;
                            if(!ss){
                                return false;
                            }
                        }
                    </script>
                </form>
            </div>


        </div>

    </div>
</div>

